#include<stdio.h>
int change(int num)
{
	if(num<0)
	{
		num=~(num-1);
	}
	else if(num>0)
	{
		num=~num+1;
	}
	return num;
}
int main()
{
	printf("%d\n",change(52));
	printf("%d\n",change(-23));
	printf("%d\n",change(0));
	return 0;
}
